package com.wing.warehouse.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.chanjet.entity.warehouse.response.WarehouseQueryResponse;
import com.wing.warehouse.model.entity.Warehouse;
import com.wing.warehouse.model.request.WarehouseForm;
import com.wing.warehouse.model.response.WarehouseVO;

import java.util.List;
import java.util.Map;

/**
 * 仓库-Service
 *
 * @author
 */
public interface WarehouseService extends IService<Warehouse> {

    /**
     * 添加
     *
     * @param warehouseForm
     * @return
     */
    int add(WarehouseForm warehouseForm);

    /**
     * 列表-app
     *
     * @param params
     * @return
     */
    List<WarehouseVO> list4app(Map<String, Object> params);

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     * @return
     */
    Page<WarehouseVO> pageList4app(Page page, Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     * @return
     */
    WarehouseVO get4appById(Long id);


    /**
     * 畅捷通-仓库数据同步
     *
     */
    void chanjetWarehouseSync();
}
